<template>
  <div class="hello">
    <h1>{{ msg }}</h1>
    <div class="welcome-banner">
      <img src="@/assets/emblemAndbadge/系徽（透明）.png" alt="金山学院校徽" class="welcome-logo">
      <p class="welcome-text">
        欢迎来到金山学院牛人榜网站！本站展示了我校优秀学生的风采和成就。
        <br>
        如果您也想加入我们的牛人行列，请积极参与各类学科竞赛和创新活动。
      </p>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  props: {
    msg: String
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.hello {
  margin: 20px auto;
  max-width: 1200px;
  text-align: center;
}

h1 {
  color: #c22;
  font-size: 28px;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  padding: 0 20px;
}

h1:before, h1:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 60px;
  height: 2px;
  background-color: #c22;
}

h1:before {
  left: -70px;
}

h1:after {
  right: -70px;
}

.welcome-banner {
  background-color: #f9f0e6;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.welcome-logo {
  width: 100px;
  height: 100px;
  margin-right: 20px;
}

.welcome-text {
  text-align: left;
  line-height: 1.8;
  color: #333;
}

@media (max-width: 768px) {
  .welcome-banner {
    flex-direction: column;
  }
  
  .welcome-logo {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .welcome-text {
    text-align: center;
  }
  
  h1:before, h1:after {
    width: 30px;
  }
  
  h1:before {
    left: -40px;
  }
  
  h1:after {
    right: -40px;
  }
}
</style>
